package net.messagenet.mazor.DO;

/**
 * This data object represents a product in the system
 * 
 * @author Idan
 *
 */

public class ProductDO {
	protected int id;
	protected String dialogicItemKey ;
	protected String productName;
	
	/**
	 * returns the item id given by dialogic
	 * 
	 * @return dialogicItemKey
	 */
	public String getDialogicItemKey() {
		return dialogicItemKey;
	}
	/**
	 * sets the item id given by dialogic 
	 * 
	 * @param dialogicItemKey
	 */
	public void setDialogicItemKey(String dialogicItemKey) {
		this.dialogicItemKey = dialogicItemKey;
	}
	/**
	 * returns the id of the pos request given by mazor system 
	 * 
	 * @return id
	 */
	public int getId() {
		return id;
	}
	/**
	 * sets the id of the pos
	 * 
	 * @param id - sets a new id for the DPA request
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * returns the product name
	 * 
	 * @return productName
	 */
	public String getProductName() {
		return productName;
	}
	/**
	 * sets the product name 
	 * 
	 * @param productName
	 */
	public void setProductName(String name) {
		this.productName = name;
	}
	/**
	 * this method returns a copy of the product object (deep copy)
	 * 
	 * @return clonedProduct
	 */
	public ProductDO cloneProduct() {
		ProductDO productDO = new ProductDO();
		productDO.setDialogicItemKey(dialogicItemKey);
		productDO.setId(id);
		productDO.setProductName(productName);
		return productDO;
	}
	
	
	
}
